import request from "@/utils/request";
export function selectSiteWithHr(params) {
  return request({
    url: `/insurance/api/v1/customerSites/selectSiteWithHr`,
    method: "get",
    params
  });
}

export function bachSaveCustomer(data) {
  return request({
    url: `/insurance/api/v1/customerSites/bachSaveCustomer`,
    method: "post",
    data
  });
}
export function selectSite(params) {
  return request({
    url: `/insurance/api/v1/customerSites`,
    method: "get",
    params
  });
}

export function deleleSite(customerSiteId) {
  return request({
    url: `/insurance/api/v1/customerSites/${customerSiteId}`,
    method: "delete"
  });
}
export function selectSiteWithInsurance(params) {
  return request({
    url: `/insurance/api/v1/companies/selectSiteWithInsurance`,
    method: "get",
    params
  });
}
export function getPlan(companyId, customerId, params) {
  return request({
    url: `insurance/api/v1/companySchemes/filterCustomerScheme/${companyId}/${customerId}`,
    method: "get",
    params
  });
}
export function selectCompanyBySiteId(siteId) {
  return request({
    url: `/insurance/api/v1/companies/selectCompanyById/${siteId}`,
    method: "get"
  });
}
export function addPlanForSite(data) {
  return request({
    url: `/insurance/api/v1/customerConfigs`,
    method: "post",
    data
  });
}
export function editPlanForSite(data) {
  return request({
    url: `/insurance/api/v1/customerConfigs`,
    method: "put",
    data
  });
}
export function getPlanList(params) {
  return request({
    url: `/insurance/api/v1/customerConfigs/listAll`,
    method: "get",
    params
  });
}

export function deletePlan(customerConfigId) {
  return request({
    url: `/insurance/api/v1/customerConfigs/${customerConfigId}`,
    method: "delete"
  });
}
